import request from '@/utils/request'

// 查询设备在线信息列表
export function listDeviceOnline(query) {
  return request({
    url: '/system/deviceOnline/list',
    method: 'get',
    params: query
  })
}

// 查询设备在线信息详细
export function getDeviceOnline(deviceId) {
  return request({
    url: '/system/deviceOnline/' + deviceId,
    method: 'get'
  })
}

// 新增设备在线信息
export function addDeviceOnline(data) {
  return request({
    url: '/system/deviceOnline',
    method: 'post',
    data: data
  })
}

// 修改设备在线信息
export function updateDeviceOnline(data) {
  return request({
    url: '/system/deviceOnline',
    method: 'put',
    data: data
  })
}

// 删除设备在线信息
export function delDeviceOnline(deviceId) {
  return request({
    url: '/system/deviceOnline/' + deviceId,
    method: 'delete'
  })
}
